package com.ssd.api.vendingMachine.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ssd.api.product.dto.SkuEntity;
import com.ssd.view.AbstractEntity;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 售货机货道实体类
 */
@Data
@TableName(value = "tb_channel")
public class ChannelEntity extends AbstractEntity implements Serializable{

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;//表Id
    @TableField(value = "channel_code")
    private String channelCode;//货道编号
    @TableField(value = "sku_id")
    private Long skuId;//商品Id
    @TableField(value = "vm_id")
    private Long vmId;//售货机Id
    @TableField(value = "inner_code")
    private String innerCode;//售货机软编号
    @TableField(value = "max_capacity")
    private Integer maxCapacity;//货道最大容量
    @TableField(value = "current_capacity")
    private Integer currentCapacity;//货道当前容量
    @TableField(value = "last_supply_time")
    private Date lastSupplyTime;//上次补货时间
    @TableField(exist = false)
    private SkuEntity sku;
}
